package com.ruoyi.business.domain.koc;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户表
 */
@Data
@TableName("tb_user_third_identity")
@ExcelIgnoreUnannotated
@ApiModel("小程序用户在第三方平台中的身份")
public class TbUserThirdIdentity implements Serializable {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * user_id
     */
    @ApiModelProperty(value = "用户表主键id")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * identity_code(如果是微信就是open_id的值，其它也是)
     */
    @ApiModelProperty(value = "union_id")
    @TableField("identity_union_id")
    private String identityUnionId;

    @ApiModelProperty(value = "open_id")
    @TableField("identity_open_id")
    private String identityOpenId;


    /**
     * identity_code(如果是微信就是open_id的值，其它也是)
     */
    @ApiModelProperty(value = "第三方身份（微信小程序0，支付宝小程序1）")
    @TableField("third_type")
    private String thirdType;

}
